package com.hyl.weapon;

import com.hyl.creature.Creature;

/**
 * @description:
 * @author: molar
 * @date: Created in 2020/6/14 17:38
 * @version:
 * @modified By:
 */
public class SuckingWeaponRattan extends CureAndAttackWeapon{

    public SuckingWeaponRattan(String id, String description,int addPoints, int damagePoints){
        super(id,description,addPoints, damagePoints);
    }
    @Override
    public void useSingleFunctionArticle(Creature targetCreature) {

    }

    @Override
    public void useDoubleFunctionArticle(Creature userCreature, Creature targetCreature) {
        userCreature.setHPValue(userCreature.getHPValue()+this.getAddPoints());
        targetCreature.setHPValue(targetCreature.getHPValue()+this.getDamagePoints());
    }
}
